﻿@{
    ViewBag.Title = "Cập nhật xử lý";
    Layout = "~/Views/Shared/_Layout.Management.cshtml";
}

<form method="post" class="form" action="/Management/ReportProblemList/Edit/@ViewBag.ReportProblemId">
	<fieldset id="firstStep">
		<h2 class="app">
	        <strong>Express - Cập nhật xử lý</strong>
        </h2>
		<div class="errorMessage" data-bind="visible: InvalidateForm" >
			<span class="error">Xin hãy nhập thông tin bên dưới chính xác.</span>
		</div>				
		<div class="title">
			<h3>Thông tin lỗi/vấn đề</h3>
		</div>
		<div id="editform" class="columns">
			<div class="col ident">
				<div class="row">
					<label>Tên liên hệ:</label>
				</div>
                <div class="row">
					<input class="text" readonly="readonly" type="text" data-bind="value: Fullname, attr:{maxlength:50}" name="Fullname" />
                </div>                  
				<div class="row">
					<label>Địa chỉ email:</label>
				</div>
                <div class="row">
					<input class="text" readonly="readonly" type="text" data-bind="value: EmailAddress, attr:{maxlength:150}" name="EmailAddress" />
                </div>
				<div class="row">
					<label>Phone:</label>
				</div>
                <div class="row">
					<input class="text" readonly="readonly" type="text" data-bind="value: Phone, attr:{maxlength: 20}" name="Phone" />
                </div>  
				<div class="row">
					<input disabled="disabled" class="text" type="checkbox" data-bind="checked: Active" name="Active" /> &nbsp;&nbsp;Active
				</div>
				<div class="row">
					<input class="text" type="checkbox" data-bind="checked: Approved" name="Approved" /> &nbsp;&nbsp;Xác nhận xử lý
				</div>
            </div>
            <div class="col">
				<div class="row">
					<label>Link Url:</label>
				</div>
                <div class="row">
					<input class="text" type="text" style="width:100%"  data-bind="value: LinkUrl, attr:{maxlength: 500}" name="LinkUrl" />
                </div>  
				<div class="row">
					<label>Nhận xét:</label>
				</div>
                <div class="row">
					<textarea class="text" cols="60" rows="10" style="width:100%" data-bind="value: Comment, attr:{maxlength:500}" name="Comment">
                    </textarea>
                </div>
			</div>
		</div> 

        <!-- button below -->
		<div class="foot-info">
			<h3 class="centered-wbtn centered-wbtn-bottom save">
  				<span>
  					<a class="btn btn-cancel-page" href="/Management/ReportProblemList">previous</a>
					<input type="button" class="btn btn-submit-page" data-bind="click: SubmitForm" value="Submit" />
                </span>
			</h3>
		</div>
	</fieldset>
</form>
<script type="text/javascript">
    var data = @(Html.Raw(Json.Encode(Model)));
</script>
<script src="/Scripts/ViewModel/editproblem.js" type="text/javascript"></script>